<!--
  Generated template for the PasswordPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  
    <ion-navbar color="primary">
      <ion-title>修改密码</ion-title>
    </ion-navbar>
  
  </ion-header>
  
  
  <ion-content padding>
  
    <form nz-form [formGroup]="form">
      <ion-list>
  
        <ion-item>
          <ion-label fixed>原密码:</ion-label>
          <ion-input type="password" formControlName="originalPassword" id="originalPassword"></ion-input>
        </ion-item>
  
        <ion-item>
          <ion-label fixed>新密码:</ion-label>
          <ion-input type="password" formControlName="newPassword"  id="newPassword"></ion-input>
        </ion-item>
  
        <ion-item>
          <ion-label fixed>确认新密码:</ion-label>
          <ion-input type="password" formControlName="checkPassword"  id="checkPassword"></ion-input>
        </ion-item>
  
      </ion-list>
  
  
  
      <!-- <button ion-button block (click)="update()" *ngIf="this.form.get('newPassword').value>0: Disabled=true ? Disabled=false">修改密码</button> -->
      
      <!-- <button ion-button block (click)="update()">修改密码</button> -->
  
      <div *ngIf="this.form.get('newPassword').value != undefined && this.form.get('checkPassword').value != undefined; then thenBlock else elseBlock"
       ></div>
      <ng-template #thenBlock>
        <button ion-button block (click)="update()">修改密码</button>
      </ng-template>
      <ng-template #elseBlock>
        <button ion-button block disabled>修改密码</button>
      </ng-template>
  
    </form>
  
  
  </ion-content>
  